using System.Drawing;

namespace ICSharpCode.TextEditor
{
	public class ToolTipRequestEventArgs
	{
		private Point mousePosition;

		private TextLocation logicalPosition;

		private bool inDocument;

		internal string toolTipText;

		public Point MousePosition => this.mousePosition;

		public TextLocation LogicalPosition => this.logicalPosition;

		public bool InDocument => this.inDocument;

		public bool ToolTipShown => this.toolTipText != null;

		public void ShowToolTip(string text)
		{
			this.toolTipText = text;
		}

		public ToolTipRequestEventArgs(Point mousePosition, TextLocation logicalPosition, bool inDocument)
		{
			this.mousePosition = mousePosition;
			this.logicalPosition = logicalPosition;
			this.inDocument = inDocument;
		}
	}
}
